package sundun.sharding.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sundun.sharding.annotation.ExecuteMethodMark;
import sundun.sharding.entity.ImsTrail;
import sundun.sharding.enums.OperateTypeEnum;
import sundun.sharding.mapper.ImsTrailDao;
import sundun.sharding.service.ImsTrailService;

import java.util.*;

/**+、
 * 案卷轨迹Service实现类
 * @author lanzhihui
 * @date 2019/09/30
 */
@Service
public class ImsTrailServiceImpl extends ServiceImpl<ImsTrailDao, ImsTrail> implements ImsTrailService {

    @Autowired
    private ImsTrailDao imsTrailDao;


    @ExecuteMethodMark(value = "selectTrailByTime",tyoe = OperateTypeEnum.SELECT)
    @Override
    public List<ImsTrail> selectTrailByTime(Map<String, Object> param) {
        return  imsTrailDao.selectTrailByTime(param);
    }


    @ExecuteMethodMark(value = "insertTrail",tyoe = OperateTypeEnum.INSERT)
    @Override
    public void insertTrail(ImsTrail imsTrail) {
        imsTrailDao.insert(imsTrail);
    }


}
